/* 基础样式 */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #2980B9;
    background: -webkit-linear-gradient(to left, #FFFFFF, #6DD5FA, #2980B9);
    background: linear-gradient(to left, #FFFFFF, #6DD5FA, #2980B9);
    margin: 0;
    font-family: Arial, sans-serif;
}

/* 表单容器 */
.forget-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 400px;
    animation: fadeIn 0.5s ease-in-out;
}

.forget-box {
    padding: 20px;
}

/* Logo 样式 */
.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo img {
    max-width: 150px;
    height: auto;
}

/* 表单标题和描述 */
.form-title {
    text-align: center;
    color: #007bff;
    margin-bottom: 10px;
    font-size: 24px;
}

.form-description {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

/* 输入框组 */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    height: 48px;
    transition: border-color 0.3s;
}

.input-group label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 2;
}

.input-group .toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    z-index: 2;
}

/* 输入框焦点样式 */
.input-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* 按钮样式 */
.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background-color 0.3s;
}

.btn-captcha {
    background-color: #28a745;
}

.btn-captcha:hover {
    background-color: #218838;
}

.btn-submit {
    background-color: #007bff;
}

.btn-submit:hover {
    background-color: #0069d9;
}

.btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* 验证码容器 */
.verification-code {
    margin-bottom: 20px;
}

.captcha-container {
    display: flex;
    align-items: center;
}

.captcha-input {
    flex: 1;
    margin-right: 10px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    height: 48px;
    font-size: 14px;
}

.captcha-image {
    width: 100px;
    height: 48px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* 错误提示 */
.error-message {
    color: #ff3860;
    font-size: 14px;
    height: 20px;
    margin-bottom: 10px;
    text-align: center;
}

/* 链接样式 */
.links {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.form-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.form-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 密码强度指示器 */
.password-strength {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.strength-bar {
    height: 5px;
    background-color: #e9ecef;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.strength-progress {
    height: 100%;
    width: 0%;
    transition: width 0.3s, background-color 0.3s;
}

.strength-weak {
    background-color: #dc3545;
    width: 33%;
}

.strength-medium {
    background-color: #ffc107;
    width: 66%;
}

.strength-strong {
    background-color: #28a745;
    width: 100%;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .forget-container {
        width: 90%;
        padding: 20px;
    }

    .form-title {
        font-size: 20px;
    }
}